package org.example.myleet.p1436;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;

import java.util.List;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("Sao Paulo".equals(solution.destCity(JsonUtils.parse("[[\"London\",\"New York\"],[\"New York\",\"Lima\"],[\"Lima\",\"Sao Paulo\"]]", List.class))));
        Assert.isTrue("A".equals(solution.destCity(JsonUtils.parse("[[\"B\",\"C\"],[\"D\",\"B\"],[\"C\",\"A\"]]", List.class))));
        Assert.isTrue("Z".equals(solution.destCity(JsonUtils.parse("[[\"A\",\"Z\"]]", List.class))));
    }
}
